package com.smxy.mall.service;

import com.smxy.mall.entity.Order;
import com.smxy.mall.model.Current;
import com.smxy.mall.model.request.OrderReq;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface OrderService {
    Order add(OrderReq orderReq, Current current);  //保存订单
    Order detail(Integer id);  //订单详情
    List<Order> list();
//    List<Order> listAll(Integer userId);
//    List<Order> listStatus(Integer status, Integer userId);
    Page<Order> listNow(Integer shopId, Integer userId, Pageable pageable);
    Page<Order> listAll(Integer shopId, Integer userId, Pageable pageable);
    Page<Order> listPage(Integer shopId, Integer userId, Integer status, Pageable pageable);
}
